let obj = [
  { diff: '类型', 'document.write()': 'document对象中的方法', innerHTML: 'Element对象中的属性' },
  { diff: '插入位置', 'document.write()': '脚本元素script的位置', innerHTML: '指定的DOM元素内' },
  { diff: '拼接方法', 'document.write()': '多次调用', innerHTML: '利用+=' },
  { diff: '覆盖问题', 'document.write()': '文档解析完再调用会覆盖，否则不会', innerHTML: '直接调用会覆盖原内容' },
]
console.table(obj);